#include "mybutton.h"

mybutton::mybutton(QWidget* parent) : QPushButton(parent)
{

}

void mybutton::enterEvent(QEvent *event)
{
    int width=this->geometry().width();
    int height=this->geometry().height();

    int x = rand() % (width);
    int y = rand() % (height);

    move(x+width,y+height);
}
